home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / colpr2.zip / PR3COL.BAT < prev    next >
DOS Batch File  |  1993-07-08  |  729b  |  28 lines

  1. @echo off
  2. rem
  3. rem Usage: PR3COL infile
  4. rem
  5. rem Reformat the input file to 49 characters/line, then print in 3 columns
  6. rem THIS IS FOR PRINTERS THAT SUPPORT A 20 CHARACTER-PER-INCH PITCH
  7. rem If your printer supports 17 cpi and you want 3 columns, you could change
  8. rem the line length from 49 to 41.
  9.  
  10. if "%1" == "" echo Usage: PR3COL infile
  11. if "%1" == "" goto end
  12. if not "%2" == "" echo Usage: PR3COL infile
  13. if not "%2" == "" goto end
  14.  
  15. rap %1 /W49 \rap.tmp
  16. if not ERRORLEVEL EQ 0 goto raperror
  17. colprint.exe \rap.tmp \colprint.tmp /c3
  18. if not ERRORLEVEL EQ 0 goto cperror
  19. print \colprint.tmp
  20. goto end
  21. :raperror
  22. echo Error in RAP processing
  23. goto end
  24. :cperror
  25. echo Error in COLPRINT processing
  26. goto end
  27. :end
  28.